//连接车位数据库
const { Schema, model } = require('mongoose')
const parkingsSchema = new Schema({
    address: String,
    price: String,
    property: String,
    carNumber: String,
    cycle: Number,
    state: {
        type: Number,
        default: 1
    },
    lessorsId: {
        type: Schema.Types.ObjectId,
        ref: "lessorsModel"
    },
    isDelete: {
        type: Boolean,
        default: false
    },
    imagesName:String,
}, { versionKey: false });
const parkingsModel = model('parkingsModel', parkingsSchema, "parkings");
module.exports.parkingsModel = parkingsModel;
